import Vue from 'vue'
import App from './App'
Vue.config.productionTip = false
App.mpType = 'app'
import uView from "uview-ui";
Vue.use(uView);
import messages from './locale/index'
let i18nConfig = {
	locale: uni.getLocale(),
	messages
}
import VueI18n from 'vue-i18n'
Vue.use(VueI18n)
const i18n = new VueI18n(i18nConfig)



import '@/utils/filters.js'; //过滤器
import {copy,go,toast,plus,minus,times,div} from '@/utils/common.js' //公共方法
import http from '@/utils/request.js'; //接口请求封装
import store from '@/utils/store.js' //store状态管理

import {swap_address} from '@/dapps/config/configuration.js' //公共方法
Object.assign(Vue.prototype, {
	'$http': http,
	'$go':go,
	'$store': store,
	'$copy':copy,//复制
	'$toast':toast,
	'$swap_address':swap_address,
	'$plus':plus,
	'$minus':minus,
	'$times':times,
	'$div':div
})

import DApp from './dapps/index.js'
Vue.prototype.$dapp = DApp

const app = new Vue({
	...App,
	i18n
})
app.$mount()